<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <title>CET-6管理员端</title>
    <link href="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../static/css/styles.css">
    <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
    {% block head %} {% endblock %}
</head>

<body class="sb-nav-fixed">
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
    <!-- Navbar Brand-->
    <a class="navbar-brand ps-3" href="#">CET-6后台管理</a>
    <!-- Sidebar Toggle-->
    <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i
            class="fas fa-bars"></i></button>
    <!-- Navbar Search-->
    <form class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">
        <div class="input-group">
            <input class="form-control" type="text" placeholder="Search for..." aria-label="Search for..."
                   aria-describedby="btnNavbarSearch"/>
            <button class="btn btn-primary" id="btnNavbarSearch" type="button"><i
                    class="fas fa-search"></i></button>
        </div>
    </form>
    <!-- Navbar-->
    <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown"
               aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
            <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                <li><a class="dropdown-item" href="#!">设置</a></li>
                <!-- <li><a class="dropdown-item" href="#!">Activity Log</a></li> -->
                <li>
                    <hr class="dropdown-divider"/>
                </li>
                <li><a class="dropdown-item" href={{url_for("auth.login")}}>登出</a></li>
            </ul>
        </li>
    </ul>
</nav>
<div id="layoutSidenav">
    <div id="layoutSidenav_nav">
        <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
            <div class="sb-sidenav-menu">
                <div class="nav">
                    <div class="sb-sidenav-menu-heading">信息管理</div>
                    <hr class="mb-10"/>
                    <a class="nav-link" href={{url_for("backend.backEndIndex")}}>
                        <div class="sb-nav-link-icon"><i class="glyphicon glyphicon-user"></i></div>
                        学生信息管理
                    </a>
                    <hr/>
                    <a class="nav-link" href="#">
                        <div class="sb-nav-link-icon"><i class="glyphicon glyphicon-user"></i></div>
                        教师信息管理
                    </a>
                    <hr/>
                    <a class="nav-link" href={{url_for("backend.showExam")}}>
                        <div class="sb-nav-link-icon"><i class="glyphicon glyphicon-user"></i></div>
                        考试信息管理
                    </a>
                    <hr/>
                    <a class="nav-link" href="#">
                        <div class="sb-nav-link-icon"><i class="glyphicon glyphicon-user"></i></div>
                        成绩分析
                    </a>
                </div>
            </div>
            <div class="sb-sidenav-footer">
                <!-- 这里传一个当前的用户名吧 -->
                <div class="small">Logged in as:{{user.userName}}</div>
            </div>
        </nav>
    </div>
    <div id="layoutSidenav_content">
        <main>
            {% block content %} {% endblock %}
        </main>
        <footer class="py-4 bg-light mt-auto">
            <div class="container-fluid px-4">
                <div class="d-flex align-items-center justify-content-between small">
                    <div class="text-muted">Copyright &copy; Your Website 2023</div>
                    <div>
                        <a href="#">Privacy Policy</a>
                        &middot;
                        <a href="#">Terms &amp; Conditions</a>
                    </div>
                </div>
            </div>
        </footer>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
<script src="../static/js/scripts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
<script src="../static/assert/demo/chart-area-demo.js"></script>
<script src="../static/assert/demo/chart-bar-demo.js"></script>
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/umd/simple-datatables.min.js"
        crossorigin="anonymous"></script>
<script src="../static/js/datatables-simple-demo.js"></script>
</body>

</html>
